// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * WarehouseBinProducts
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "warehouse_bin_products", autoResultMap = true)
@Schema(title = "仓位子表")
public class WarehouseBinProducts implements Serializable {

  /**
   * 所属仓位
   */
  @TableField(value = "`parent_warehouse_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "所属仓位")
  private Long parentWarehouseBin;

  /**
   * 仓位
   */
  @TableField(value = "`parent_id`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "仓位")
  private Long parentId;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 产品
   */
  @TableField(value = "`product_id`")
  @JoinField(Product.class)
  @Schema(title = "产品")
  private Long productId;

  /**
   * sku
   */
  @TableField(value = "`sku`")
  @Schema(title = "sku")
  private String sku;

  /**
   * 店铺
   */
  @TableField(value = "`shop_id`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shopId;

  /**
   * fnsku
   */
  @TableField(value = "`fnsku`")
  @JoinField(ListingFather.class)
  @Schema(title = "fnsku")
  private Long fnsku;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 库存
   */
  @TableField(value = "`quantity`")
  @Schema(title = "库存")
  private Long quantity;

  /**
   * fnskuName
   */
  @TableField(value = "`fnsku_name`")
  @Schema(title = "fnskuName")
  private String fnskuName;

  /**
   * msku
   */
  @TableField(value = "`msku`")
  @Schema(title = "msku")
  private String msku;

  /**
   * asin
   */
  @TableField(value = "`asin`")
  @Schema(title = "asin")
  private String asin;

  /**
   * 款名
   */
  @TableField(value = "`product_name`")
  @Schema(title = "款名")
  private String productName;

  /**
   * 店铺名称
   */
  @TableField(value = "`shop_name`")
  @Schema(title = "店铺名称")
  private String shopName;

  /**
   * 零星产品id
   */
  @TableField(value = "`lx_product_id`")
  @Schema(title = "零星产品id")
  private Long lxProductId;
}
